-- GENERATED SPELL FOR [Phantim] --


function spell0_5314(pUnit, Event) --@Corrosive Acid Breath,n/a--
pUnit:FullCastSpellOnTarget(20667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5314', 30000, 1)
end

function Sorts_5314(pUnit, Event)
local choix_sorts_5314 = math.random(0, 0)
if choix_sorts_5314 == 0 then
pUnit:RegisterEvent('spell0_5314', 1, 1)
end
end

function mob5314_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5314', math.random(1500, 3000), 1)
end

function mob5314_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5314_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5314_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5314, 1, 'mob5314_Action')
RegisterUnitEvent(5314, 2, 'mob5314_Leave')
RegisterUnitEvent(5314, 3, 'mob5314_Kill')
RegisterUnitEvent(5314, 4, 'mob5314_Die')
